The QuickTime Xtra provides the following new properties and functions to control QuickTime sprite icons and sprites.
center |
|||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , # center, state)
GetIconProperty(IconID@"IconTitle", #center) |
||||||||||||
Type | Icon property |
||||||||||||
Description | The center property has a visible effect only when the crop property is set to true. The state parameter can have these values:TRUE The QuickTime movie is cropped around the center of the movie. FALSE The QuickTime movie is cropped from the top left corner of the movie
The |
||||||||||||
Example | This script sets the setting of the center property of a QuickTime movie named "QT3" to TRUE :
SetIconProperty(@"QT3", #crop,TRUE) -- crop must be TRUE SetIconProperty(@"QT3", #center,TRUE) |
||||||||||||
Related Property | crop
|
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle", #controller, state)
GetIconProperty(IconID@"IconTitle", #controller) |
||||||||||||
Type | Icon property |
||||||||||||
Description | This property shows or hides a QuickTime sprite movie's controller. The state parameter can have these values:TRUE The QuickTime movie's controller is visible. FALSE The QuickTime movie's controller is hidden.
The |
||||||||||||
Example | This script reverses the current setting of the controller property of a QuickTime movie named "Starburst."
state := GetIconProperty(IconID@"StarBurst", # |
||||||||||||
Related Property | directToStage |
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle", #crop,state)
GetIconProperty(IconID@"IconTitle", #
|
||||||||||||
Type | Icon property |
||||||||||||
Description | This property affects how a QuickTime movie is displayed in the Presentation window. The state parameter can have these values:TRUE The QuickTime movie isn't scaled to fit the sprite. It's cropped to fit inside the sprite rectangle. FALSE The QuickTime movie is scaled—either stretched or shrunk—to fit the sprite
The |
||||||||||||
Example | This script sets the setting of the crop property of a QuickTime movie named "QT3" to TRUE :
SetIconProperty(@"QT3", #crop,TRUE) |
||||||||||||
Related Property | center, scale, translation | ||||||||||||
Syntax | GetIconProperty(IconID@"IconTitle", #cuePointNames) |
||||||||||||
Type | Icon property |
||||||||||||
Description |
This property
returns a linear list of named cue points set in the QuickTime movie file.
If there are no cue points in the file, the value returned is Newly imported
QuickTime movies have the |
||||||||||||
Related Property | mostRecentCuePoint | ||||||||||||
Syntax | GetIconProperty(IconID@"IconTitle", #cuePointTimes) |
||||||||||||
Type | Icon property |
||||||||||||
Description |
This property
returns a linear list of cue point times (in milliseconds) set in the
QuickTime movie file. If there are no cue points in the file, the value
returned is Newly imported
QuickTime movies have the |
||||||||||||
Related Property | mostRecentCuePoint
|
||||||||||||
Syntax | GetSpriteProperty(IconID@"IconTitle", #currentTime) |
||||||||||||
Type | Sprite property |
||||||||||||
Description | This property can be used to determine the time elapsed (in milliseconds) from the start of the specified QuickTime movie. The currentTime property can be tested but not set.
|
||||||||||||
Syntax | GetIconProperty(IconID@"IconTitle", #digitalVideoType) |
||||||||||||
Type | Icon property |
||||||||||||
Description | This property always returns #quickTime . |
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , # directToStage, state )
GetIconProperty(IconID@"IconTitle", #
|
||||||||||||
Type | Icon property |
||||||||||||
Description | This property affects how a QuickTime movie is displayed in the Presentation window. The state parameter can have these values:TRUE The QuickTime movie plays in front of all other layers. No objects can appear in front of the movie except as a mask. FALSE The QuickTime movie can appear in any layer in the Presentation window.
The |
||||||||||||
Example | This script sets the setting of the directToStage property of a QuickTime movie named "QT3" to TRUE :
SetIconProperty(@"QT3", #directToStage,TRUE) |
||||||||||||
Related Property | mask
|
||||||||||||
Syntax | GetIconProperty(IconID@"IconTitle", #duration) |
||||||||||||
Type | Icon property |
||||||||||||
Description | This property can be used to determine the QuickTime movie's duration in ticks (60ths of a second). The duration property can be tested but not set.
|
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , #filename ,file )
GetIconProperty(IconID@"IconTitle", #
|
||||||||||||
Type | Icon property |
||||||||||||
Description | This property specifies the QuickTime movie file to display at the specified icon title. The file parameter can be an absolute path, a relative path, or a URL.
The |
||||||||||||
Example | The following examples show three ways to specify the filename property:
SetIconProperty(@"QT3", #filename, "sample.mov") SetIconProperty(@"QT3", #filename, "C:\qtvr_example.mov") SetIconProperty(@"QT3", #filename, ¬ "http://www.apple.com/quicktime/samples/qtvrimages/saumur_multirate.mov")
|
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , #frameRate ,rate )
GetIconProperty(IconID@"IconTitle", #
|
||||||||||||
Type | Icon property |
||||||||||||
Description | This property specifies the frame rate at which the QuickTime movie at the specified sprite icon is played. The possible values for the rate parameter correspond to the playback options in the QuickTime Xtra Properties dialog box:-2 plays every frame as fast as possible -1 plays every frame at the normal rate 0 plays the movie in sync with the soundtrack A positive number plays the movie at that frame rate |
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , #invertMask ,state )
GetIconProperty(IconID@"IconTitle", #invertMask) |
||||||||||||
Type | Icon property |
||||||||||||
Description | This property controls the way Authorware interprets a QuickTime movie's mask property. The state parameter can have these values:TRUE The QuickTime movie is drawn in the white pixels of the movie's mask. FALSE The QuickTime movie is drawn in the black pixels of the movie's mask.
The
Specify a mask icon using the |
||||||||||||
Example | This script reverses the current setting of the invertMask property of a QuickTime movie named "Starburst."
state := GetIconProperty(IconID@"StarBurst", #invertMask) SetIconProperty(IconID@"StarBurst", #invertMask, ~state) |
||||||||||||
Related Property | mask
|
||||||||||||
Syntax | CallSprite(IconID@"IconTitle", #isPastCuePoint, cuePointID ) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This
function returns the number of times a sprite passes a specified cue point
in its file. The cuePointID
parameter may be an integer or a name.
If
If
If the value specified for
The number returned by
When the result of Use SoundEdit to insert a cue point in a QuickTime file. SoundEdit uses the term "marker" to refer to the cue points. Newly imported
QuickTime movies have the |
||||||||||||
Related Property | cuePointNames , cuePointTimes
|
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , #loop, state)
GetIconProperty(IconID@"IconTitle", #loop)
|
||||||||||||
Type | Icon property
|
||||||||||||
Description | This property determines whether the specified QuickTime movie is set to loop (TRUE ) or not (FALSE ).
|
||||||||||||
Example | This script sets the QuickTime movie named "Starburst" to loop.
SetIconProperty(IconID@"StarBurst", #loop, TRUE)
|
||||||||||||
Syntax | SetSpriteProperty(IconID@"IconTitle" , #loopBounds , [startTime, endTime ])
GetSpriteProperty(IconID@"IconTitle", #loopBounds) |
||||||||||||
Type | Sprite property |
||||||||||||
Description | This property sets the internal loop points for a QuickTime sprite. The loop points are specified as a list:
[startTime, endTime]
The
If any of these requirements is not met, the QuickTime movie loops through its entire duration.
The
The |
||||||||||||
Example | This sprite script sets the starting and ending times for looping within a QuickTime sprite. Notice that the times are set by specifying the number of seconds, which is then converted to ticks by multiplying by 60.
SetSpriteProperty(@"QuickTimeIcon", #loopBounds,[(16 * 60),(32 * 60)]) |
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , #mask , IconID@"IconTitle" ) |
||||||||||||
Type | Icon property |
||||||||||||
Description | This property specifies the black and white (1-bit) contents of a display or interaction icon to be used as a mask for QuickTime media rendered direct to screen. The QuickTime media appears in the areas where the mask's pixels are black. The mask property allows you to take advantage of the performance advantages of a direct to screen digital video while playing a QuickTime movie in a non-rectangular area. The mask property has no effect on non-direct to screen sprite icons.
Authorware always aligns the upper-left corner of the contents of the mask icon with the upper-left corner of the QuickTime movie sprite. The mask can't be moved and isn't affected by the
For best results, set a QuickTime icon's Masking is an advanced feature; you may need to do some experimentation to achieve your goal.
The |
||||||||||||
Example | This script sets a mask for the QuickTime sprite icon named "Peeping Tom" before Authorware begins to draw the sprite.
SetIconProperty(@"Peeping Tom", #mask, @"Keyhole") |
||||||||||||
Related Property | directToStage, invertMask
|
||||||||||||
Syntax | GetSpriteProperty(IconID@"IconTitle", #mediaBusy ) |
||||||||||||
Type | Sprite property |
||||||||||||
Description | This property returns TRUE if the specified QuickTime movie is currently playing. The mediaBusy property can be tested but not set. |
||||||||||||
Syntax | GetIconProperty(IconID@"IconTitle", #mediaReady ) |
||||||||||||
Type | Icon property |
||||||||||||
Description | This property returns TRUE if the specified QuickTime movie is downloaded and ready to play. The mediaReady property can be tested but not set. |
||||||||||||
Syntax | GetSpriteProperty(IconID@"IconTitle", #mostRecentCuePoint) |
||||||||||||
Type | Sprite property |
||||||||||||
Description | This property is the number that identifies the most recent cue point passed in the sprite icon. The value is the ordinal number of the cue point. If no cue points have been passed, the value is 0. |
||||||||||||
Related Property | cuePointNames , cuePointTimes
|
||||||||||||
Syntax | SetSpriteProperty(IconID@"IconTitle" , #mouseLevel , value )
GetSpriteProperty(IconID@"IconTitle", #mouseLevel) |
||||||||||||
Type | Sprite property |
||||||||||||
Description | This property controls how Authorware passes mouse clicks on a QuickTime sprite to QuickTime. Without the QuickTime Xtra, Authorware passes mouse clicks only on the QuickTime controller. The ability to pass mouse clicks within the sprite's bounding rectangle can be useful for interactive media such as QuickTime VR. The value parameter can have these values:
The |
||||||||||||
Example | This script checks to see if the name of the currently executing icon contains the string "QTVR." If it does, it sets the mouseLevel to #all ; otherwise, it sets the mouseLevel to #none .
if Find(" QTVR, IconTitle(ExecutingIconID)) then setSpriteProperty(ExecutingIconID, #mouseLevel, #all) else SetSpriteProperty(ExecutingIconID, #mouseLevel, #none) end if
|
||||||||||||
Syntax | SetSpriteProperty(IconID@"IconTitle" , #mRate , value )
GetSpriteProperty(IconID@"IconTitle", #
|
||||||||||||
Type | Sprite property |
||||||||||||
Description | This property determines the rate of playback for the QuickTime movie playing in the specified icon. The value parameter can have these values:1 is normal forward play -1 is reverse 0 is stop
Higher and lower values are possible. For example, a value of 0.5 causes the digital video to play slower than normal. However, frames may be dropped when the value of
The |
||||||||||||
Example | This script toggles forward and reverse playback for the specified QuickTime movie:
if (GetSpriteProperty(@"QT3", #mRate)) = 1 then SetSpriteProperty(@"QT3", #mRate,-1) else SetSpriteProperty(@"QT3", #mRate,1) end if
|
||||||||||||
Syntax | SetSpriteProperty(IconID@"IconTitle" , #mTime , value )
GetSpriteProperty(IconID@"IconTitle", #
|
||||||||||||
Type | Sprite property |
||||||||||||
Description | This property determines the current time of a QuickTime movie playing in the specified icon. The value of the mTime property is measured in ticks.
The |
||||||||||||
Example | This script restarts the QuickTime movie playing in the "QT3" icon:
SetSpriteProperty(@"QT3", #mTime, 0)
|
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , # pausedAtStart, state )
GetIconProperty(IconID@"IconTitle", #
|
||||||||||||
Type | Icon property |
||||||||||||
Description | This property specifies whether the Paused checkbox in the QuickTime Xtra Properties dialog box is checked or not. The state parameter can have these values:TRUE The Paused checkbox is checked. FALSE The Paused checkbox is not checked.
The |
||||||||||||
Example | This script sets the pausedAtStart property of a QuickTime movie named "QT3" to TRUE :
SetIconProperty(@"QT3", #
|
||||||||||||
Syntax | GetIconProperty(IconID@"IconTitle", #percentStreamed ) |
||||||||||||
Type | Icon property |
||||||||||||
Description | This property returns a value between 1 and 100 to indicate how much of the QuickTime movie has been downloaded. The percentStreamed property can be tested but not set. |
||||||||||||
Related Property | mediaReady
|
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , # preload, state )
GetIconProperty(IconID@"IconTitle", #
|
||||||||||||
Type | Icon property |
||||||||||||
Description | This property specifies whether the Enable Preload checkbox in the QuickTime Xtra Properties dialog box is checked or not. The state parameter can have these values:TRUE The Enable Preload checkbox is checked. FALSE The Enable Preload checkbox is not checked.
The |
||||||||||||
Example | This script sets the preload property of a QuickTime movie named "QT3" to TRUE :
SetIconProperty(@"QT3", #
|
||||||||||||
Syntax | QuickTimeVersion() |
||||||||||||
Type | Function |
||||||||||||
Description | This function returns a floating-point value that identifies the currently installed version of QuickTime.
Windows users: If there are multiple versions of QuickTime 3.0 or later installed, |
||||||||||||
Example | This script uses QuickTimeVersion to check whether QuickTime is installed. If QuickTime version 3 or later is installed, Authorware jumps to a file containing a QuickTime video. If QuickTime isn't installed, Authorware jumps to a file that employs traditional Authorware animation.
if QuickTimeVersion() >= 3 then JumpFile
|
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , #rotation , degrees )
|
||||||||||||
Type | Icon property |
||||||||||||
Description | This property controls the rotation of a QuickTime sprite. This property does not rotate the sprite's bounding rectangle or the sprite's controller. Instead, it rotates the image around the image's center point within the sprite's bounding rectangle.
If the sprite's
You specify the rotation in the |
||||||||||||
Example | This script rotates a QuickTime sprite 180 degrees.
|
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , #scale , [xPercent , yPercent ])
|
||||||||||||
Type | Icon property
|
||||||||||||
Description | This property controls the scaling of a QuickTime sprite. This property doesn't scale the sprite's bounding rectangle or the sprite's controller. Instead, it scales the image around the image's center point within the bounding rectangle. The scaling is specified as a list containing two percentages:
[xPercent, yPercent]
The
When the sprite's
The |
||||||||||||
Example | This script zooms in on a QuickTime sprite.
SetIconProperty(IconID@"QT3", #scale,[150,150]) |
||||||||||||
Syntax | CallSprite( IconID@"IconTitle", #setTrackEnabled, trackNum, state ) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This function determines whether a QuickTime sprite's track is enabled to play. QuickTime version 3 or later supports multiple tracks for video, sound, text, and other media. |
||||||||||||
Example | This script toggles the first track in the sprite icon named "QT3."
if (CallSprite(@"QT3", #trackEnabled,1) ) = 0 then CallSprite(@"QT3", #setTrackEnabled,1,TRUE) else CallSprite(@"QT3", #setTrackEnabled,1,FALSE) end if
|
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , # sound, state )
GetIconProperty(IconID@"IconTitle", #
|
||||||||||||
Type | Icon property |
||||||||||||
Description | This property controls the audio output of the specified QuickTime sprite icon. The state parameter can have these values:TRUE The QuickTime movie's sound is turned on. FALSE The QuickTime movie's sound is turned off.
The |
||||||||||||
Example | This script reverses the current setting of the sound property of a QuickTime movie named "Starburst."
state := GetIconProperty(IconID@"StarBurst", # |
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , #streaming, state)
GetIconProperty(IconID@"IconTitle", #
|
||||||||||||
Description | QuickTime movies may now be streamed into Authorware. Set streaming to TRUE to enable this feature. This setting is TRUE by default in Authorware 5.1, but FALSE by default for any existing ( Authorware 5.0 and earlier ) QuickTime icons. Note: QuickTime 4 must be installed to enable streaming .If a streaming QuickTime file contains cuepoints, then you must set the text track to be preloaded (use a QuickTime editor such as MoviePlayerPro to do this). If you do not preload the text track, Authorware will disable the cuepoints in the QuickTime file so it can stream without downloading the entire file. You will need to reload the file after editing the QuickTime movie to preload the cuepoint track. Newly imported
QuickTime movies have the
The
|
||||||||||||
Example | This script sets the QuickTime movie named "Starburst" to download completely before playing by setting the streaming property to FALSE .
SetIconProperty(IconID@"StarBurst", #streaming, FALSE)
|
||||||||||||
Syntax | GetIconProperty(IconID@"IconTitle", #timeScale ) |
||||||||||||
Type | Icon property |
||||||||||||
Description | This property gives the time unit per second that the QuickTime movie's frames are based on. For example, QuickTime video is measured in 1/600s of a second so the timeScale value is 600. The timeScale property can be tested but not set.
|
||||||||||||
Syntax | CallSprite( IconID@"IconTitle", #trackCount) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This function returns the number of tracks in the movie at the specified icon. QuickTime version 3 or later supports multiple tracks for video, sound, text, and other media. |
||||||||||||
Example | This script sets the value of the NumTracks variable to the number of tracks in the sprite icon named "QT3."
|
||||||||||||
Syntax | CallSprite( IconID@"IconTitle", #trackEnabled, trackNum ) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This function indicates whether the specified track of a digital video is enabled to play. Use the setTrackEnabled function to enable or disable a track.
|
||||||||||||
Example | This script toggles the first track in the sprite icon named "QT3."
if (CallSprite(@"QT3", #trackEnabled,1) ) = 0 then CallSprite(@"QT3", #setTrackEnabled,1,TRUE) else CallSprite(@"QT3", #setTrackEnabled,1,FALSE) end if
|
||||||||||||
Syntax | CallSprite(IconID@"IconTitle" , # trackNextKeyTime, trackNum ) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This function returns the time in ticks (60ths of a second) of the keyframe that follows the current time in the QuickTime movie. The movie's track is specified by trackNum . The returned value can be tested but not set.
|
||||||||||||
Syntax | CallSprite(IconID@"IconTitle" , # trackNextSampleTime, trackNum ) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This function returns the time in ticks (60ths of a second) of the next sample that follows the QuickTime movie's current time. It's useful for locating text tracks in a QuickTime movie. The returned value can be tested but not set.
|
||||||||||||
Syntax | CallSprite(IconID@"IconTitle" , # trackPreviousKeyTime, trackNum ) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This function returns the time in ticks (60ths of a second) of the prior keyframe that precedes the current time in the QuickTime movie. The movie's track is specified by trackNum . The returned value can be tested but not set.
|
||||||||||||
Syntax | CallSprite(IconID@"IconTitle" , # trackPreviousSampleTime, trackNum ) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This function returns the time in ticks (60ths of a second) of the sample that precedes the QuickTime movie's current time. It is useful for locating text tracks in a QuickTime movie. The returned value can be tested but not set.
|
||||||||||||
Syntax | CallSprite( IconID@"IconTitle", #trackStartTime, trackNum ) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This function returns the start time of the specified track of the specified QuickTime movie in ticks (60ths of a second). |
||||||||||||
Example | This script sets the value of the StartTime variable to the default starting time of the second track in the sprite icon named "QT3."
|
||||||||||||
Syntax | CallSprite( IconID@"IconTitle", #trackStopTime, trackNum ) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This function returns the stop time of the specified track of the specified QuickTime movie in ticks (60ths of a second). |
||||||||||||
Example | This script sets the value of the EndTime variable to the default ending time of the second track in the sprite icon named "QT3."
|
||||||||||||
Syntax | CallSprite( IconID@"IconTitle", #trackType, trackNum ) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This function returns a symbol to identify the type of the specified track in the movie at the specified icon. QuickTime version 3 or later supports multiple tracks for video, sound, text, and other media. Possible return values include #video , #sound , and #text . |
||||||||||||
Example | This script sets the value of the SoundTrack variable depending on the presence of sound in the second track of the sprite icon named "QT3."
If CallSprite(@"QT3", #trackType, 2) = #sound then SoundTrack := "sound available" else SoundTrack := "no sound available" end if
|
||||||||||||
Syntax | CallSprite (IconID@"IconTitle", #trackText , trackNum ) |
||||||||||||
Type | Xtra function |
||||||||||||
Description | This function returns the text that is at the current time in the specified track of the QuickTime movie. The result is a string value, which can be up to 32K characters long. This function applies to text tracks only.
|
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , #translation , [xOffset , yOffset ])
|
||||||||||||
Type | Icon property
Sprite property |
||||||||||||
Description | This property controls the offset of a QuickTime sprite's image within the sprite's bounding box. This offset is expressed in relation to the sprite's default location, as set by its center property. When center is set to TRUE , the sprite is offset relative to the center of the bounding rectangle; when center is set to FALSE , the sprite is offset relative to the upper-left corner of the bounding rectangle. The offset is set as a list:
[xOffset, yOffset]
The
When the sprite's
The |
||||||||||||
Example | This script assumes that the center property of a 320-pixel-wide QuickTime sprite is set to FALSE . It moves the movie's horizontal translation point to the right edge of the sprite by 10 pixels. This has a "wipe right" effect, moving the sprite out of view to the right each time the script executes.
horizontalPosition := GetSpriteProperty(IconID@"QuickTime", #translation) if horizontalPosition < 320 then SetSpriteProperty(IconID@"QuickTime", #translation, horizontalPosition + [10,0]) end if
|
||||||||||||
Syntax | SetIconProperty(IconID@"IconTitle" , # video, state )
GetIconProperty(IconID@"IconTitle", #
|
||||||||||||
Type | Icon property |
||||||||||||
Description | This property enables or disables the video output of the specified QuickTime sprite icon. The state parameter can have these values:TRUE The QuickTime movie's video is visible. FALSE The QuickTime movie's video is hidden.
The |
||||||||||||
Example | This script reverses the current setting of the video property of a QuickTime movie named "Starburst."
state := GetIconProperty(IconID@"StarBurst", #
|
||||||||||||
Syntax | SetSpriteProperty(IconID@"IconTitle" , #volumeLevel, level )
GetSpriteProperty(IconID@"IconTitle", #volumeLevel) |
||||||||||||
Type | Sprite property |
||||||||||||
Description | This property controls the sound volume of a QuickTime sprite. You can set the sound level from 0 (mute) to 256 (full volume). The volumeLevel property can be tested and set. |
||||||||||||
Example | This script checks if the volumeLevel of the QuickTime sprite is greater than 200. If it is, the script sets the volumeLevel to 150.
if GetSpriteProperty(IconID@"QuickTime", #volumeLevel) > 200 then SetSpriteProperty(IconID@"QuickTime", #volumeLevel,150) end if
|